package com.hjj.AppIO;

import java.io.FileWriter;
import java.io.IOException;

public class MyApp4 {
    public static void main(String[] args) {
        String temp = "\n中国共产党第二十次全国代表大会胜利闭幕";

        String path = "F:\\IO\\aa.txt";

        try {
            FileWriter fileWriter = new FileWriter(path, true);

            fileWriter.write(temp);

            fileWriter.flush();
            fileWriter.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
